package com.homelink.android.explorerup.component;

import java.util.ArrayList;


public class IntegerArrayList<T> extends ArrayList<T>{

	@Override
	public boolean contains(Object object) {
		if(object instanceof Integer){
			Integer value = (Integer)object;
			for (T e : this) {
				Integer el = (Integer)e;
				if(el.intValue() == value.intValue()){
					return true;
				}
			}
		}
		return super.contains(object);
	}
	
	@Override public boolean remove(Object object){
		if(object instanceof Integer){
			for (T e : this) {
				Integer el = (Integer)e;
				if(el.intValue() ==  ((Integer)object).intValue()){
					return super.remove(object);
				}
			}
		}
		return  super.remove(object);
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 319010868828878750L;

	
	
	
}
